package cn.psvmc.cxzapi.model.ticket;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 工单表
 * @Author auto
 * @Date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_ticket")
public class TTicket implements Serializable {

    //工单id
    @TableId(value = "ticket_id", type = IdType.AUTO)
    private Integer ticketId;

    //工单类型id
    @TableField("type_id")
    private Integer typeId;

    //工单原因id
    @TableField("tcid")
    private Integer tcid;

    //订单编号
    @TableField("order_code")
    private String orderCode;

    //工单标题
    @TableField("title")
    private String title;

    //联系电话
    @TableField("phone")
    private String phone;

    //完结时间
    @TableField("end_time")
    private LocalDateTime endTime;

    //状态（0待处理1已完结）
    @TableField(value = "status")
    private Integer status;

    //工单说明
    @TableField("comm")
    private String comm;

    //图片
    @TableField("ticket_img")
    private String ticketImg;

    //客户id
    @TableField("customerid")
    private Integer customerid;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;


}
